(function(window,$){
    function request({
        url,
        method = 'get',
        header = {},
        data = {},
        timeout = 5000,
    } = {}){
        return $.ajax({
            url,
            method,
            header,
            data,
            timeout
        })
    }
    function post(url,data){
        return request({
            url,
            data,
            method:"post"
        })
    }
    function get(url,data){
        return request({
            url,
            data,
            method:"get"
        })
    }
    window.FK_ajax = {
        request,
        post,
        get
    }
})(window,jQuery)